



function query_taskOwn() {
	var parm = $('#queryTaskOwnForm').serialize();
	var url = create_url('myTask-query');
	$.ajax({type:'POST', url:url, data:parm,
		success: function (result) {
			$('#page_content').html(result);
			swiperNested1.reInit();			// 刷新样式计算
		},
		error:function (e) {
			
		}
	});
	
}

function save_taskOwn() {
	var parm = $('#editTaskOwnForm').serialize();
	var url = create_url('maTask-save');
	$.ajax({type:'POST', url:url, data:parm, 
		success: function (result) {
			if ('success' == result) {
				alert('保存成功');
				sys_load_handl('myTask');
			} else if ('error' == result) 
				alert('保存失败');
			else if ('parameter_error' == result)
				alert('没有可以保存的数据');
			else
				alert('保存失败');
		},
		error:function (e) {
			alert('服务器错误');
		}
	});
}

function save_taskOwn() {
	var parm = $('#editTaskOwnForm').serialize();
	var url = create_url('myTask-save');
	$.ajax({type:'POST', url:url, data:parm, 
		success: function (result) {
			if ('success' == result) {
				alert('保存成功');
				sys_load_handl('myTask');
			} else if ('error' == result) 
				alert('保存失败');
			else if ('parameter_error' == result)
				alert('没有可以保存的数据');
			else
				alert('保存失败');
		},
		error:function (e) {
			alert('服务器错误');
		}
	});
}


function deleted_taskOwn(code) {
	var parm = {'code':code};
	var url = create_url('myTask-delete');
	$.ajax({type:'POST', url:url, data:parm, 
		success: function (result) {
			alert(result);
			if ('success' == result) {
				alert('删除成功');
				sys_load_handl('myTask');
			} else if ('error' == result) 
				alert('删除失败');
			else 
				alert('删除失败');
		},
		error:function (e) {
			alert('服务器错误');
		}
	});
}
